# -!- coding: utf-8 -!-
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
风险评估报告H5流程图
#文件：flowAppsvr.py
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

rule_status = 'F'          # 规则状态:S-成功，F-失败


def flow():
    flow_rule()


# 规则引擎节点流程
def flow_rule():
    flow = {
        "1":"黑名系统",
        #"2": "大数据平台",
        "3": "百行征信-百行征信报告",
        "4": "百融-特殊名单校验(货前风险策略)",
        "5": "腾讯云-天御反欺诈",
        "6": "TalkingData-欺诈风险侦测",
        "7":"同盾-贷前审查",
        "8": "百融-手机在网状态、时长及消费档次(信息验证策略)",
        "9":"电话邦-邦信分详单版2.0数据字典",
        "10": "电话邦-邦秒配",
        "11": "电话邦-金盾",
        "12":"银联智惠-消费画像",
        "13": "银联智惠-风险评估报告",
        "999": "授信成功",
    }
    for rule in flow:
        if rule_status == 'S':
            if rule=='999':
                print('调用规则引擎所有节点完成，授信成功！')
            else:
                print('调用' + flow[rule] + '接口完成！')
        if rule_status=='F':
            if rule=='999':
                print('调用规则引擎所有节点完成，授信失败！')
            else:
                print('调用' + flow[rule] + '接口完成！')

if __name__ == '__main__':
    flow()